package com.foreknow.demo9;

import java.io.Serializable;

/**
 * Serializable 序列化
 */
public class Employee implements Serializable {
    private String name;
    private int age;
    private String dept;

    public Employee() {

    }

    public Employee(String name, int age, String dept) {
        this.name = name;
        this.age = age;
        this.dept = dept;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

}
